Skip to content

Patterns REST API: Add 'inserter' to the schema - #2600

Closed
Mamaduka wants to merge 2 commits into
WordPress:trunkfrom
Mamaduka:add/patterns-api-inserter-to-schema
Closed

Mamaduka wants to merge 2 commits into
WordPress:trunkfrom
Mamaduka:add/patterns-api-inserter-to-schema

Conversation

@Mamaduka

Copy link
Copy Markdown
Member

Backports changes from WordPress/gutenberg#40416

Adds the missing inserter field to the Patterns item schema.
Currently, this field is omitted from the response, and patterns that should be hidden in the inserter are visible.

Props, @ndiego, for discovering a bug and testing the fix.

Trac ticket: https://core.trac.wordpress.org/ticket/55567


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@gziolo gziolo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. We use the default text domain in WP core, but otherwise looks great 👍🏻

@gziolo

gziolo commented Apr 19, 2022

Copy link
Copy Markdown
Member

Committed with https://core.trac.wordpress.org/changeset/53210.

@gziolo gziolo closed this Apr 19, 2022
@Mamaduka

Copy link
Copy Markdown
Member Author

Sorry about copy-pasta, @gziolo.

@gziolo

gziolo commented Apr 19, 2022

Copy link
Copy Markdown
Member

Sorry about copy-pasta, @gziolo.

Actually, it'd be perfectly fine to avoid using the text domain in the Gutenberg plugin in files that we know are meant to be moved to core 😄

@Mamaduka
Mamaduka deleted the add/patterns-api-inserter-to-schema branch September 13, 2022 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants